package com.wn.bean;

import lombok.Data;

import java.time.LocalDate;
import java.util.Date;

/**
 * @author yellow Docter
 * @date 2024-07-02
 * @desc 蜗牛创想：www.woniuxy.com
 *
 *  java 中 一对一
 *      Stu{
 *
 *          private String name;
 *          private Teacher teacher;
 *
 *      }
 *
 *  java 中 一对多

 *      Stu{
 *          private String name;
 *          private List<Teacher> teachers;
 *      }

 */
@Data
public class House {

    private Integer id;
    private Integer floor;
    //mybatis 中 可以 自动对 sql表中的 下划线进行字段映射(java 中必须是小骆驼)
    private String houseNo;
    private LocalDate intoDate;
    private Integer buildingId;
    private String remarks;
    private Double area;
    private Integer status;
    private Integer ownerId;
    private LocalDate createTime;
    private LocalDate lastUpdateTime;

    //一对一
    //build
    private Building building;
    //owner
    private Owner owner;

}
